#include <stdio.h>
int main()
{
	int num = 0;
	while (scanf_s("%d", &num) != EOF)
	{
		char arr[50][50] = { 0 };
		for (int i = 0; i < num; i++)
		{
			for (int j = 0; j < num; j++)
			{
				if (j == i || j == num - 1 - i)
				{
					arr[i][j] = '*';
				}
				else
					arr[i][j] = ' ';
			}
		}
		for (int i = 0; i < num; i++)
		{
			for (int j = 0; j < num; j++)
			{
				printf("%c", arr[i][j]);
			}
			printf("\n");
		}
	}
	return 0;
}